﻿using Domain.Base;
using DtoFw.Enum;
using SqlSugar;
using System;

namespace Domain.Entity
{
    ///<summary>
    ///物品
    ///</summary>
    [SugarTable("case_physical_evidence")]
    [DB(EnumDatabase.Mysql, Cache = false)]
    public class CasePhysicalEvidenceEntity: BaseEntity
    {

        [SugarColumn(ColumnName = "CaseId")]
        public System.Int64 CaseId { get; set; }

        /// <summary>
        /// 物品编号
        /// </summary>
        [SugarColumn(ColumnName = "No")]
        public System.String No { get; set; }

        /// <summary>
        /// 物品名称
        /// </summary>
        [SugarColumn(ColumnName = "Name")]
        public System.String Name { get; set; }

        /// <summary>
        /// 物品状态
        /// 0:已登记
        /// 1:已入库
        /// 2:已出库
        /// </summary>
        [SugarColumn(ColumnName = "Status")]
        public int Status { get; set; }

        /// <summary>
        /// 流水Id
        /// </summary>
        [SugarColumn(ColumnName = "LogId")]
        public System.Int64? LogId { get; set; }

        /// <summary>
        /// 保存期限
        /// </summary>
        [SugarColumn(ColumnName = "UsefulLife")]
        public System.DateTime? UsefulLife { get; set; }

        /// <summary>
        /// 物品属性
        /// </summary>
        [SugarColumn(ColumnName = "Shape")]
        public System.String Shape { get; set; }

        /// <summary>
        /// 物品标签
        /// </summary>
        [SugarColumn(ColumnName = "Tag")]
        public System.String Tag { get; set; }

        /// <summary>
        /// 物品大类
        /// </summary>
        [SugarColumn(ColumnName = "Class")]
        public System.String Class { get; set; }

        /// <summary>
        /// 物品子类
        /// </summary>
        [SugarColumn(ColumnName = "Category")]
        public System.String Category { get; set; }


        /// <summary>
        /// 物品大类
        /// </summary>
        [SugarColumn(ColumnName = "ClassName")]
        public System.String ClassName { get; set; }

        /// <summary>
        /// 物品子类
        /// </summary>
        [SugarColumn(ColumnName = "CategoryName")]
        public System.String CategoryName { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        [SugarColumn(ColumnName = "Quantity")]
        public System.Int32? Quantity { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        [SugarColumn(ColumnName = "Unit")]
        public System.String Unit { get; set; }

        /// <summary>
        /// 物品来源
        /// </summary>
        [SugarColumn(ColumnName = "EvidenceSource")]
        public System.String EvidenceSource { get; set; }

        /// <summary>
        /// 产地
        /// </summary>
        [SugarColumn(ColumnName = "ExtractionParts")]
        public System.String ExtractionParts { get; set; }

        /// <summary>
        /// 获取方式
        /// </summary>
        [SugarColumn(ColumnName = "ExtractMethod")]
        public System.String ExtractMethod { get; set; }

        /// <summary>
        /// 提取人1
        /// </summary>
        [SugarColumn(ColumnName = "ExtractionPerson1Id")]
        public System.Int64? ExtractionPerson1Id { get; set; }

        /// <summary>
        /// 提取人
        /// </summary>
        [SugarColumn(ColumnName = "ExtractionPersonId")]
        public System.Int64? ExtractionPersonId { get; set; }

        /// <summary>
        /// 提取人1姓名
        /// </summary>
        [SugarColumn(ColumnName = "ExtractionPerson1Nmae")]
        public System.String ExtractionPerson1Nmae { get; set; }

        /// <summary>
        /// 提取人姓名
        /// </summary>
        [SugarColumn(ColumnName = "ExtractionPersonName")]
        public System.String ExtractionPersonName { get; set; }

        /// <summary>
        /// 获取时间
        /// </summary>
        [SugarColumn(ColumnName = "ExtractionDateTime")]
        public System.DateTime? ExtractionDateTime { get; set; }

        /// <summary>
        /// 重量
        /// </summary>
        [SugarColumn(ColumnName = "ExtractionOrganId")]
        public System.Int64? ExtractionOrganId { get; set; }

        /// <summary>
        /// 颜色
        /// </summary>
        [SugarColumn(ColumnName = "ExtractionOrganName")]
        public System.String ExtractionOrganName { get; set; }

        /// <summary>
        /// 特品描述
        /// </summary>
        [SugarColumn(ColumnName = "Describe")]
        public System.String Describe { get; set; }

        /// <summary>
        /// 系统编码，本系统默认为0
        /// </summary>
        [SugarColumn(ColumnName = "Flag")]
        public System.String Flag { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        [SugarColumn(ColumnName = "Source")]
        public string Source { get; set; }
        /// <summary>
        /// 0手录/1现勘/2送检
        /// </summary>
        [SugarColumn(ColumnName = "SourceName")]
        public string SourceName { get; set; }

        /// <summary>
        /// Rfid
        /// </summary>
        [SugarColumn(ColumnName = "RFID")]
        public System.String RFID { get; set; }


        [SugarColumn(ColumnName = "TimeLimit")]
        public DateTime TimeLimit { get; set; }

        [SugarColumn(ColumnName = "InQuantity")]
        public int? InQuantity { get; set; }

        [SugarColumn(ColumnName = "OutQuantity")]
        public int? OutQuantity { get; set; }


        [SugarColumn(ColumnName = "Location")]
        public string Location { get; set; }



        /// <summary>
        /// 单位ID
        /// </summary>、
        [SugarColumn(ColumnName = "OrganId")]
        public System.Int64? OrganId { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>、
        [SugarColumn(ColumnName = "OrganName")]
        public string OrganName { get; set; }

        /// <summary>
        /// 录入人所在机构
        /// </summary>
        [SugarColumn(ColumnName = "DeptId")]
        public System.Int64? DeptId { get; set; }

        /// <summary>
        /// 录入人
        /// </summary>
        [SugarColumn(ColumnName = "UserId")]
        public System.Int64? UserId { get; set; }

        /// <summary>
        /// 录入人区划代码
        /// </summary>
        [SugarColumn(ColumnName = "ComNo")]
        public System.String ComNo { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "Remark")]
        public System.String Remark { get; set; }

        /// <summary>
        /// 三级分类id
        /// </summary>
        [SugarColumn(ColumnName = "subCategoryId")]
        public string SubCategoryId { get; set; }
        /// <summary>
        /// 三级分类名称
        /// </summary>
        [SugarColumn(ColumnName = "subCategoryName")]
        public System.String SubCategoryName { get; set; }
        /// <summary>
        /// 型号
        /// </summary>
        [SugarColumn(ColumnName = "xinghao")]
        public System.String XingHao { get; set; }
        /// <summary>
        /// 成色
        /// </summary>
        [SugarColumn(ColumnName = "chengse")]
        public System.String ChengSe { get; set; }
        /// <summary>
        /// 购买时间
        /// </summary>
        [SugarColumn(ColumnName = "buyDate")]
        public System.DateTime? BuyDate { get; set; }
        /// <summary>
        /// 采取措施时间
        /// </summary>
        [SugarColumn(ColumnName = "caiQuChuoSiDate")]
        public System.DateTime? CaiQuChuoSiDate { get; set; }
        /// <summary>
        /// 购买价格
        /// </summary>
        [SugarColumn(ColumnName = "buyPrice")]
        public System.Decimal? BuyPrice { get; set; }


    }
}
